package com.zhuiyun.educations.api.voide.service;

import com.zhuiyun.educations.api.voide.entity.Voide;
import com.zhuiyun.educations.api.voide.entity.VoideResult;

import java.io.IOException;

/**
 * @Description:
 * @ClassName: VoideService
 * @Author: YB
 * @Date: 2023/6/23 11:48
 * @Version: 1.0
 */
public interface VoideService {
    /**
     * @param voide
     * @Author yuanb
     * @Description 校验文件是否存在
     * @Date 2023/6/23 11:50
     * @Return com.zhuiyun.educations.api.voide.entity.Voide
     */
    VoideResult checkChunkExist(Voide voide);

    /**
     * @Author yuanb
     * @Description 上传文件分片
     * @Date 2023/6/23 11:50
     * @Return com.zhuiyun.educations.api.voide.entity.Voide
     * @param chunkDTO
     */
    void uploadChunk(Voide chunkDTO);

    /**
     * @Author yuanb
     * @Description 合并文件分片
     * @Date 2023/6/23 11:50
     * @Return com.zhuiyun.educations.api.voide.entity.Voide
     * @param voide
     */
//    boolean mergeChunk(String identifier, String filename, Integer totalChunks)throws IOException;
    Integer mergeChunk(Voide voide)throws IOException;



}
